<template>
  <div>
    <input type="text" :value="msg" @input="fn">
  </div>
</template>

<script>
export default {
  data () {
    return {
      msg: 123
    }
  },
  methods: {
    fn (e) {
      this.msg = e.target.value
      console.log(e.target.value)
    }
  }
}
</script>

<style>

</style>
